d12e65
@@ -280,6 +280,7 @@
protected void initializeOp(Configuration hconf) throws HiveException {
       numFiles = conf.getNumFiles();
       dpCtx = conf.getDynPartCtx();
       lbCtx = conf.getLbCtx();
+      fsp = prevFsp = null;
       valToPaths = new HashMap<String, FSPaths>();
       taskId = Utilities.getTaskId(hconf);
       initializeSpecPath();
@@ -877,6 +878,7 @@
public void closeOp(boolean abort) throws HiveException {
         fsp.abortWriters(fs, abort, !autoDelete && isNativeTable);
       }
     }
+    fsp = prevFsp = null;
   }
 
   /**
